<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DatePicker.ascx.cs" Inherits="TVT.UI.UserControls.DatePicker" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:UpdatePanel ID="upPnlDatePicker" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table style="width:100%; text-align:left">
            <tr>
                <td>                
                    <asp:Label ID="lblTitle" Text="Date: " runat="server"></asp:Label>
                                    
                    <asp:TextBox ID="txtDate" runat="server" CssClass="TextBox" Width="70px" MaxLength="1" />
                    <asp:ImageButton ID="imgBntCalendar" runat="server" ImageUrl="~/App_Themes/Standard/Images/Calendar.png" CausesValidation="False" style="vertical-align:middle"/>
                </td>
           </tr>             
        </table>
        <ajaxToolkit:CalendarExtender ID="calendarExtender" runat="server" TargetControlID="txtDate" PopupButtonID="imgBntCalendar" />
        <ajaxToolkit:MaskedEditExtender ID="maskedEditExtender" runat="server"
            TargetControlID="txtDate"
            Mask="99/99/9999"
            MessageValidatorTip="true"
            MaskType="Date"
            DisplayMoney="Left"
            AcceptNegative="Left"
            ErrorTooltipEnabled="True" />     
    </ContentTemplate>
</asp:UpdatePanel>